import java.util.Scanner;

public class Test13 {
    public static void main(String[] args) {
     System.out.println("请输入m:");
     System.out.println("请输入n:");
        Scanner scanner=new Scanner(System.in);
        int m=scanner.nextInt();
        int n=scanner.nextInt();
        int a=sum(n,m);
System.out.println("偶数和" +a);
    }

    private static int sum(int n, int m) {
        int sum=0;
        for( ;m<n; m++) {
            if (m % 2 == 0) {
                sum = sum + m;
            }
        }
        return sum;
    }
}
